<?php
if (!isset ($_SESSION))
session_start();
include_once($_SESSION['dir'].'/basedatos.php');
$database = new BaseDatos();
$info_imagen = $database->select4("Perfil", "usrname", $_GET['id'], "foto");
header("Content-type: image/jpg");
print $info_imagen[0];

?>
